package d0327;


import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

public class Test {
    public static void main(String[] args) throws Exception {
        File fl=new File("src/d0327/b.txt");
        FileReader fr=new FileReader(fl);
        BufferedReader br=new BufferedReader(fr);
        String str[]=br.readLine().split("[ \n.,]");


        Map<String,Integer> map = new HashMap<>();
       int num[]=new int[100];

        for (int i = 0; i <str.length; i++) {
            map.put(str[i],1);
        }
        Set<String> keys = map.keySet();
        for (String str3 :
                keys) {
            System.out.println(str3 + "--" + map.get(str));
        }


    }
}
